<%= link_to "BeyondRails论坛", HOME + "/forums" %> » <%= link_to @post.forum.title, forum_path(@post.forum) %> » 更新帖子
<% form_for @post, :html => {:onsubmit => "copy_content_before_form_submit('editor', 'post_content');"} do |f| %>
  <%= f.error_messages %>
<table>
    <tr>
        <td>
            <%= f.label :title, "标题" %>
        </td>
        <td>
            <%= f.text_field :title %>
        </td>
    </tr>
	<tr>
		<td>标签</td>
		<td><%= f.text_field :tag_list, :size => 40 %> (请用半角逗号分隔)</td>
	</tr>
    <tr>
        <td style="vertical-align: top;">
            <%= f.label :content, "内容" %>
        </td>
        <td>
			<%= f.text_area :content, :style => "display: none" %>
			<iframe id="editor" name="editor" src="/editor.html?ubb=0&id=post_content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:400px;width:700px"></iframe>
        </td>
    </tr>
    <tr>
        <td>
            <%= image_submit_tag("/images/forum/update_post.png") %>
        </td>
    </tr>
</table>
<% end %>